﻿using Vectors;

namespace Domain
{
    public class Domain
    {
        public Vector3D FirstVector { get; set; }
        public Vector3D SecondVector { get; set; }

        public Vector3D ResultVector { get; set; }
        public double ResultScalar { get; set; }


        public void Add()
        {
            ResultVector =FirstVector+SecondVector;
        }

        public void Sub()
        {
            ResultVector = FirstVector - SecondVector;
        }


        public void ScalarProduct()
        {
            ResultScalar = Vector3D.ScalarProduct(FirstVector,SecondVector);
        }

        public void CrossProduct()
        {
            ResultVector = Vector3D.CrossProduct(FirstVector, SecondVector);
        }

        public void Norm()
        {
            ResultScalar = FirstVector.Norm();
        }

        public void Normalize()
        {
            var resultVector = FirstVector.Copy();
            resultVector.Normalize();
            ResultVector=resultVector.Copy();
        }


    }
}
